MPHB\Translation A

Total Complexity 70
Dependencies 7
Dependents 1
Total lines 567
Lines of code 259
Logical lines of code 145
Comment lines 203
Methods 38
Properties 3

Methods 38

Method Rating Maintainability Complexity Lines of code
wpmlCopyPostMeta()
S
53 5 24
getRestoreLanguage()
S
60 4 13
translateString()
S
62 4 12
setWPMLDefaultLanguage()
S
59 3 15
changeLanguageForCustomerEmail()
S
62 3 12
improveWMPLCompability()
S
54 2 20
translateRoomType()
S
66 3 8
setLocaleForEmails()
S
71 3 6
getAllTranslationIds()
S
61 2 11
translateReservedService()
S
63 2 10
translateService()
S
71 2 5
translateRate()
S
71 2 5
isOriginalId()
S
74 2 4
isTranslationPage()
S
78 2 3
translateId()
S
70 2 6
translateAttributes()
S
66 2 8
switchLanguage()
S
71 2 6
registerWPMLString()
S
70 2 6
resetWPMLStoredLanguage()
S
71 2 6
changeLanguageForAdminEmail()
S
66 2 9
resetLanguageAfterEmail()
S
70 2 7
setupAllLanguages()
S
76 1 4
updateTextdomains()
S
64 1 10
isActiveLanguage()
S
79 1 3
isActiveWPML()
S
80 1 3
isTranslatablePostType()
S
78 1 3
setupDefaultLanguage()
S
76 1 4
getTaxTranslationIds()
S
78 1 3
wpmlTranslatePageId()
S
79 1 3
getPostTranslationIds()
S
78 1 3
restoreLanguage()
S
81 1 3
getCurrentId()
S
78 1 3
getOriginalId()
S
78 1 3
getDefaultLanguage()
S
79 1 3
getWPLanguage()
S
75 1 4
getCurrentLanguage()
S
79 1 3
wpmlTranslatePostId()
S
79 1 3
__construct()
S
71 1 5